import http from "@/utils/request";

export function getCommunity(params){
  return http.request({
    url:'/community',
    params,
    method:'get'
  })
}

export function addCommunity(data){
  return http.request({
    url:'/community/add',
    data,
    method:'post'
  })
}

export function updateCommunity(data){
  return http.request({
    url:'/community/update',
    data,
    method:'post'
  })
}